home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d22 / cpark.arc / PARK.DOC < prev   
Text File  |  1991-07-03  |  5KB  |  133 lines

  1.     
  2.     
  3.     
  4.     
  5.     
  6.     
  7.     
  8.     
  9.     
  10.     
  11.     
  12.     
  13.     
  14.     
  15.     
  16.                                        A
  17.                                   Configurable
  18.                               Disk Parking Utility
  19.                                       for
  20.                                  IBM PC clones
  21.     
  22.     
  23.     
  24.     
  25.     
  26.     
  27.     
  28.     
  29.     
  30.     
  31.     
  32.     
  33.     
  34.     
  35.     
  36.                           Copyright 1991 Dave Dunfield
  37.                               All rights reserved.
  38.     Configurable Park Utility                                        Page: 1
  39.  
  40.  
  41.     1. INTRODUCTION
  42.     
  43.           I recently put together an XT computer out of spare  parts  I  had
  44.        lying around, and ended up with a rather weird disk configuration.  I
  45.        had this old 12 Meg MEMOREX disk drive sitting on  the  shelf  for  a
  46.        number of years, which had 6 heads and  240  cylinders.  The  closest
  47.        drive table entry on the XT controller was 6 heads and 400 cylinders.
  48.     
  49.           I was able to use the drive by doing a partial format of only  the
  50.        first 240 cylinders, and establishing a primary DOS partition  (using
  51.        FDISK) which was only 240  cylinders  in  size.  Thus,  although  the
  52.        system thought it was a 400 cylinder drive, it never had  any  reason
  53.        to attempt access to the cylinders which were not physically present.
  54.     
  55.           All of the above worked perfectly,  until  I  tried  to  park  the
  56.        drive.... BUZZZZ... (Insert the sound  of  a  head  actuator  banging
  57.        against the drive stop about 160 times).
  58.     
  59.           Since I had run into similar situations  (particularily  on  XT's)
  60.        where I didn't always have a park utility which put  the  heads  away
  61.        where I wanted, I decided to solve the problem once and for all,  and
  62.        sat down and wrote the PARK.COM program described  on  the  following
  63.        pages.
  64.     
  65.           The source code to PARK is provided in the file PARK.C, and may be
  66.        re-compiled using my MICRO-C compiler (See enclosed CATALOG file). It
  67.        MUST be complied in TINY model, which allows it to easily  write  out
  68.        an updated copy of itself (See '-s' option).
  69.     
  70.           The program may be freely used and distributed, provided  that  my
  71.        copyright notices are not removed or altered.
  72.     Configurable Park Utility                                        Page: 2
  73.  
  74.  
  75.     2. PARK.COM
  76.     
  77.           The PARK.COM program  supplied  in  this  archive  allows  you  to
  78.        specify the number of hard drives to park, and the cylinder number at
  79.        which to park each drive.
  80.     
  81.           In its simplest form, the PARK command  consists  of  one  decimal
  82.        operand for each drive in the system, which is the cylinder number at
  83.        which to park the drive. If  you  specify  a  cylinder  number  of  0
  84.        (zero), the highest cylinder number for that  drive  as  reported  by
  85.        BIOS is used:
  86.     
  87.                 PARK 0          ; Park drive C at highest known cylinder
  88.                 PARK 240        ; Park drive C at cylinder 240
  89.                 PARK 240 0      ; Park drive C at 240, drive D at highest
  90.                 PARK 240 400    ; Park drive C at 240, drive D at 400
  91.     
  92.           If the BIOS does not acknowledge the existance of a drive, it will
  93.        be ignored. The last two examples above would be equivalent to  "PARK
  94.        240" on a single drive system.
  95.     
  96.           PARK.COM supports a '-s' option, which causes it to  write  a  new
  97.        PARK.COM which defaults to the remaining options. Executing PARK with
  98.        no arguments will PARK at these default settings:
  99.     
  100.                 PARK -s 240 0   ; Save the settings
  101.                 PARK            ; Park drive C at 240, drive D at highest
  102.     
  103.           You may see the currently defined default  settings  by  executing
  104.        PARK with the '-s' option, and no other arguments:
  105.     
  106.                 PARK -s         ; Display the default settings
  107.     
  108.           The PARK.COM program supplied in this archive is defaulted to  TWO
  109.        drives, both of which are  parked  at  the  highest  cylinder  number
  110.        indicated by BIOS. This is equivalent to:
  111.     
  112.                 PARK -s 0 0     ; Default to drive C+D, highest cylinder
  113.     
  114.           PARK will display a brief help summary if you give it  an  operand
  115.        of '?' or '-?'.
  116.     
  117.                 PARK ?          ; Display usage info
  118.  
  119.  
  120.  
  121.                            Configurable Park Utility
  122.  
  123.                                TABLE OF CONTENTS
  124.  
  125.  
  126.                                                                          Page
  127.  
  128.      1. INTRODUCTION                                                        1
  129.  
  130.  
  131.      2. PARK.COM                                                            2
  132.  
  133.